import { useRoutes } from 'react-router-dom';
import { routerMap } from './path';

const Router = () => {
  const routes = useRoutes(routerMap);
  return routes;
};
export default Router;
